<%@ page language="java" pageEncoding="utf-8"%>
<%@include file="/commons/taglib.jsp"%>

<html>
<head>
	<script type="text/javascript" src="${rootPath}/js/jquery.js"></script>
	<script type="text/javascript">
		
		
	</script>

</head>
<body>
	<center>
	<table width="100%" cellpadding="0" border="1" cellspacing="0">
		<tr>
			<td colspan="2" align="center">
				${teamDZ.zdName} vs ${teamDZ.kdName} 比分：<a href="${teamDZ.urlBet007}" target="_blank">${teamDZ.source}</a>
			</td>
		</tr>
		
		<tr>
			<td align="center" valign="top" width="50%">
				首发
			</td>
			<td align="center" valign="top" width="50%">比赛状况</td>			
		</tr>
		
		<tr>
			<td width="50%">
				<table cellpadding="0" cellspacing="0" width="100%">
					<tr>
						<td align="center" valign="top" width="50%">
							<table width="100%">
								<tr>
									<td width="20%" align="left">号码</td>
									<td width="20%" align="left">姓名</td>
									<td width="20%" align="left">角色</td>
									<td width="20%" align="left">时间</td>
									<td width="20%" align="left">位置</td>
									
								</tr>
							
								<c:forEach items="${shouFaList}" var="shoufa">
									
									<c:if test="${shoufa.footballTeam.id == teamDZ.zd.id }">
										<tr>
											<td width="20%" align="left">${shoufa.jerseyNumber } </td>
											<td width="20%" align="left">${shoufa.personName }</td>
											<td width="20%" align="left">${shoufa.shouFa } </td>
											<td width="20%" align="left">${shoufa.playingSumTime }</td>
											<td width="20%" align="left">${shoufa.footballPlayer.position }</td>									
										</tr>
									</c:if>
									
								</c:forEach>
							</table>
						</td>
						<td align="center" valign="top" width="50%">
							<table width="100%">
								<tr>
									<td width="20%" align="left">号码</td>
									<td width="20%" align="left">姓名</td>
									<td width="20%" align="left">角色</td>
									<td width="20%" align="left">时间</td>
									<td width="20%" align="left">位置</td>								
								</tr>
							
								<c:forEach items="${shouFaList}" var="shoufa">
									
									<c:if test="${shoufa.footballTeam.id == teamDZ.kd.id }">
										<tr>
											<td width="20%" align="left">${shoufa.jerseyNumber } </td>
											<td width="20%" align="left">${shoufa.personName }</td>
											<td width="20%" align="left">${shoufa.shouFa } </td>
											<td width="20%" align="left">${shoufa.playingSumTime }</td>
											<td width="20%" align="left">${shoufa.footballPlayer.position }</td>									
										</tr>
									</c:if>
									
								</c:forEach>
							</table>
						</td>
					</tr>
				</table>
			</td>
			<td width="50%">
				<table cellpadding="0" cellspacing="0" width="100%">
					<tr>
						<td align="center" valign="top" width="50%" height="100%">
						
							<table width="100%">
								<tr>
									<td width="20%" align="left">时间</td>
									<td width="30%" align="left">姓名</td>
									<td width="20%" align="left">事件</td>
									<td width="30%" align="left">事件详情</td>							
								</tr>
								<c:forEach items="${gameFireList}" var="gameFire">
								
									<c:if test="${gameFire.eventFootballTeam.id == teamDZ.zd.id }">
										<tr>
											<td width="20%" align="left">${gameFire.eventTime}</td>
											<td width="30%" align="left">${gameFire.personName}</td>
											<td width="20%" align="left"> ${gameFire.event} </td>
											<td width="30%" align="left"> ${gameFire.huanrenMsg}</td>							
										</tr>
									</c:if>
									
								</c:forEach>
							</table>
							
						</td>
						<td align="center" valign="top" width="50%">
							<table width="100%">
								<tr>
									<td width="20%" align="left">时间</td>
									<td width="30%" align="left">姓名</td>
									<td width="20%" align="left">事件</td>
									<td width="30%" align="left">事件详情</td>							
								</tr>
								<c:forEach items="${gameFireList}" var="gameFire">
								
									<c:if test="${gameFire.eventFootballTeam.id == teamDZ.kd.id }">
										<tr>
											<td width="20%" align="left">${gameFire.eventTime}</td>
											<td width="30%" align="left">${gameFire.personName}</td>
											<td width="20%" align="left"> ${gameFire.event} </td>
											<td width="30%" align="left"> ${gameFire.huanrenMsg}</td>
										</tr>
									</c:if>
									
								</c:forEach>
							</table>
						</td>
					</tr>
				</table>
			</td>			
		</tr>
		
		<tr>
			<td colspan="2" align="center">
				<c:forEach items="${teamDzErrorLogList}" var="teamDzErrorLog">				
						${teamDzErrorLog.eventTime} ${teamDzErrorLog.event} ${teamDzErrorLog.errorMsg} <br/>
					
				</c:forEach>
			</td>
		</tr>
		
	</table>
	</center>
	
</body>
</html>